package com.yunsom.testdemo.design.vistor;

/**
 * @author Xbao
 * @version 1.0
 * @description
 * @date 2021/3/19 16:42
 */
public class CeoVisitor implements Visitor {

  @Override
  public void visit(Engineer engineer) {
    System.out.println("工程师:"+engineer.name+" kpi:"+engineer.kpi);
  }

  @Override
  public void visit(Manager manager) {
    System.out.println("经理:"+manager.name+" kpi:"+manager.kpi+" 产品数量:"+manager.getProductAmount());
  }
}
